<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>学员详情</title>
</head>
<body>
<style>
.detailpd { padding-top:10px; }
</style>
<script>

function getQueryParam(name) {
	debugger;
    var obj = $('#common-dialog').dialog('options');
    var queryParams = obj["queryParams"];
    return queryParams[name];
}
//自动填充值

function autoInput(obj){

 	$.each(obj, function(i, n){
	  //from 下的input
		if(i=="applyTime"){
			n = formatDateTime(n);
		}
 		$("#student-div-detail input[name="+i+"]").textbox({value:n});
	 //$("#coache-div-detail #"+i).html(n);
	});
}


$(function(){
	var _id  =getQueryParam("id");
	$.getJSON("StudentServlet.do?method=edit",{id:_id},function(json){
		//自动添值
		autoInput(json);
	});	 
	$('#student-div-detail input').attr('disabled','true')
 });
</script>
</head>
<body>

		<div class="datagrid-body" id=student-div-detail>
			<table class="datagrid-btable" cellspacing="0" cellpadding="0"
				border="0" style="width: 100%;">
				<tbody>
					<tr class="datagrid-row">
						<td
							style="border-style: solid; width: 20%; text-align: right; padding-right: 7px">名字</td>
						<td style="border-style: solid; width: 30%; text-align: left;">
							<input type="text" name="name"
							class="easyui-validatebox" style="width: 200px">
						</td>

						<td
							style="border-style: solid; width: 20%; text-align: right; padding-right: 7px">身份证号</td>
						<td style="border-style: solid; width: 30%; text-align: left;">
							<input type="text" name="idNumber"
							class="easyui-validatebox" style="width: 200px">
						</td>
					</tr>
					<tr class="datagrid-row">
						<td
							style="border-style: solid;  text-align: right; padding-right: 7px">性别</td>
						<td style="border-style: solid;  text-align: left;">
							<input type="text" name="sex"
							class="easyui-validatebox" style="width: 200px">
						</td>

						<td
							style="border-style: solid;  text-align: right; padding-right: 7px">年龄</td>
						<td style="border-style: solid;  text-align: left;">
							<input type="text" name="age"
							class="easyui-validatebox" style="width: 200px">
						</td>
					</tr>
					 <tr class="datagrid-row">
						<td
							style="border-style: solid;  text-align: right; padding-right: 7px">电话</td>
						<td style="border-style: solid;  text-align: left;">
							<input type="text" name="phone"
							class="easyui-validatebox" style="width: 200px">
						</td>

						<td
							style="border-style: solid;  text-align: right; padding-right: 7px">住址</td>
						<td style="border-style: solid;  text-align: left;">
							<input type="text" name="address"
							class="easyui-validatebox" style="width: 200px">
						</td>
					</tr>
					 <tr class="datagrid-row" >
						<td
							style="border-style: solid;  text-align: right; padding-right: 7px">报考车型</td>
						<td style="border-style: solid;  text-align: left;">
							<input type="text" name="candiCar"
							class="easyui-validatebox" style="width: 200px">
						</td>
						<td
							style="border-style: solid;  text-align: right; padding-right: 7px">学费</td>
						<td style="border-style: solid;  text-align: left;">
							<input type="text" name="learnSalary"
							class="easyui-validatebox" style="width: 200px">
						</td>
					</tr>
					<tr>
						<td style="border-style: solid;  text-align: right; padding-right: 7px">报名时间</td>
						<td style="border-style: solid;  text-align: left;">
							<input type="text" name="applyTime"
							class="easyui-validatebox" style="width: 200px">
						</td>
						<td
							style="border-style: solid;  text-align: right; padding-right: 7px">创建人</td>
						<td style="border-style: solid;  text-align: left;">
							<input type="text" name="createName"
							class="easyui-validatebox" style="width: 200px">
						</td>
					</tr>
				</tbody>
			</table>
		</div>
</body>
</html>